<script type="text/javascript" src="/easyui/validatebox-extend.js"></script>
<div id="dlg" class="easyui-dialog" style="width:800px;" data-options="closed:true,modal:true,border:'thin',buttons:'#dlg-buttons'">
    <form id="fm" method="post" novalidate style="padding:2px 2px 2px 2px">
        <table class="dv-table" style="width:100%;background:#fafafa;padding:5px;margin-top:5px;">
            <#if dlg??>
                <#list dlg as attr>
                    <tr>
                        <td style="width: 20%">${attr.fieldzh}</td>
                        <td style="width: 80%">
                            <input name="${attr.field}" id="${attr.field}" <#if attr.required=='yes'>required="true"</#if> <#if attr.required=='yes'>validType="${attr.typeConstraint}" </#if>class="easyui-textbox"  missingMessage="请输入${attr.fieldzh}" style="width:100%">
                        </td>
                    </tr>
                </#list>
            </#if>
        </table>
    </form>
</div>
<div id="dlg-buttons">
    <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="save()" style="width:90px">保存</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')" style="width:90px">取消</a>
</div>